import request from '@/utils/request'

// 查询文件上传记录列表
export function listFileUploadRecord(query) {
  return request({
    url: '/module/fileUploadRecord/list',
    method: 'get',
    params: query
  })
}

// 查询文件上传记录详细
export function getFileUploadRecord(id) {
  return request({
    url: '/module/fileUploadRecord/' + id,
    method: 'get'
  })
}

// 新增文件上传记录
export function addFileUploadRecord(data) {
  return request({
    url: '/module/fileUploadRecord',
    method: 'post',
    data: data
  })
}

// 修改文件上传记录
export function updateFileUploadRecord(data) {
  return request({
    url: '/module/fileUploadRecord',
    method: 'put',
    data: data
  })
}

// 删除文件上传记录
export function delFileUploadRecord(id) {
  return request({
    url: '/module/fileUploadRecord/' + id,
    method: 'delete'
  })
}
//下载
export function  getDownloadApi(data){
  return request({
    url:'/module/fileUploadRecord/downloadFile',
    method:'POST',
    data,
  })
}
